﻿<%@ Page Title="Buscar Plato" Language="C#" MasterPageFile="~/Presentacion/Template.Master" AutoEventWireup="true" CodeBehind="API_Menu_BuscarPlato.aspx.cs" Inherits="UricaoWeb.Presentacion.API_menu_BuscarPlato" %>

<script runat="server">
</script>

<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="TituloModulo">
            <h2>&nbsp;</h2>
            <p>&nbsp;</p>
            <h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Menu&nbsp;</h2>
</asp:Content>

<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="OpcionesModulo">
            <div id='cssmenu'>
        <ul>
           <li class='has-sub'><a href="API_menu_CrearMenu.aspx"><span>Crear Menu</span></a>
              
           </li>
           <li class='has-sub'><a href="API_menu_BuscarMenu.aspx"><span>Modificar Menu</span></a>
           </li>
            <li class='has-sub'><a href="API_menu_CrearPlato.aspx"><span>Crear Plato</span></a>
           </li> 
            <li class='has-sub'><a href="API_menu_BuscarPlato.aspx"><span>Modificar Plato</span></a>
           </li>     
        </ul>
    </div>
</asp:Content>

<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="ContenidoDelModulo">
    <form id="form1" runat="server">
    <h2>Buscar Plato</h2>
			<p class="color1">&nbsp;</p>
				<div class="wrapper">
                     <div id="Div1" role="search" class="searchForm" runat="server">
                         <strong>Nombre:&nbsp;&nbsp;&nbsp;
                         </strong>
                         <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                         <asp:UpdatePanel ID="UpdatePanel2" runat="server"> 
                        <ContentTemplate>
                        <asp:TextBox ID="TBBuscarPlato" runat="server" CssClass ="inputPersonalizado" AutoPostBack="true" Height="25px" Width="450px" OnTextChanged="TextBox1_TextChanged" Placeholder ="Buscar..."></asp:TextBox>
                         
            <button id="btnSearch" class="botonCualquiera" type="submit"  >
                <img class="glyphicon" src="images/glyphicons_search.png"/>
            </button>
                            </ContentTemplate>
                        </asp:UpdatePanel>
            
        </div>
				</div>
        <br />
        <br />
				<div class="wrapper">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
                        <ContentTemplate>  
                                <asp:GridView ID="GVPlato"  CssClass="mGrid" AllowPaging="True" HorizontalAlign ="Center" runat="server" OnPageIndexChanging="GVPlato_PageIndexChanging" AutoGenerateColumns="False" DataKeyNames="IdPlato,NombrePlato,PrecioPlato,FotoPlato,DetallePlato,CompartirPlato,ActivoPlato" Width="510px" ForeColor="#99CCFF" OnRowDataBound="GVPlato_RowDataBound" OnSelectedIndexChanged="GVPlato_SelectedIndexChanged" OnSelectedIndexChanging="GVPlato_SelectedIndexChanging" PageSize="5" >
                                <AlternatingRowStyle CssClass="alt" />
                                    <Columns>
                                        <asp:BoundField DataField="IdPlato" HeaderText="IdPlato" Visible="false" SortExpression="IdPlato" />
                                        <asp:BoundField DataField="NombrePlato" HeaderText="Nombre" />
                                        <asp:BoundField DataField="PrecioPlato" HeaderText="Precio" ItemStyle-HorizontalAlign="Center" >
                                        <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:ImageField DataImageUrlField="FotoPlato" DataImageUrlFormatString="~/Presentacion/images/{0}" HeaderText="Imagen" ControlStyle-Height ="100px" ControlStyle-Width ="150px" ItemStyle-HorizontalAlign="Center">
                                            <ControlStyle Height="100px" Width="150px" />
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:ImageField>
                                        <asp:BoundField DataField="DetallePlato" HeaderText="Detalle" Visible="false" />
                                        <asp:BoundField DataField="CompartirPlato" HeaderText="Compartir" Visible="false" />
                                        <asp:BoundField DataField="ActivoPlato" HeaderText="Activo" Visible="false" />
                                        <asp:CommandField ShowSelectButton="True" SelectText="" ButtonType="Image" HeaderText="Accion"  SelectImageUrl="~/Presentacion/images/glyphicons_pencil.png" />
                                    </Columns>
                                <PagerStyle CssClass="pgr" />
                                    <SelectedRowStyle BackColor="#3366FF" BorderColor="Black" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    <div class="wrapper">
                        &nbsp;<p class="pad_bot2">
                            &nbsp;</p>
                    </div>
				</div>
    </form>
</asp:Content>